<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="__PUBLIC__/Wenda/css/style.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Wenda/font/iconfont.css" />
<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
<title>才智帮 - 付费语音问答平台</title>
</head>
<body>
<input type="button" value="脉动一下"/>
<script type="text/javascript">
	//调用微信JS api 支付
	function jsApiCall()
	{
		WeixinJSBridge.invoke(
			'getBrandWCPayRequest',
			"<?php echo $jsApiParameters; ?>",
			function(res){
				WeixinJSBridge.log(res.err_msg);
				
				//支付成功后可以设置跳转页面
				alert(res.err_code+res.err_desc+res.err_msg);
			}
		);
	}

	function callpay()
	{
		if (typeof WeixinJSBridge == "undefined"){
		    if( document.addEventListener ){
		        document.addEventListener('WeixinJSBridgeReady', jsApiCall, false);
		    }else if (document.attachEvent){
		        document.attachEvent('WeixinJSBridgeReady', jsApiCall); 
		        document.attachEvent('onWeixinJSBridgeReady', jsApiCall);
		    }
		}else{
		    jsApiCall();
		}
	}
	</script>
</body>
</html>
